package net.spring_mybatis.service.impl;

import net.spring_mybatis.entity.Stu;
import net.spring_mybatis.mapper.StuMapper;
import net.spring_mybatis.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @Author lj
 * @Date 2024/10/15 0:09
 * @Version 1.0
 */
@Service
public class StuServiceImpl implements StuService {
    @Autowired
    private StuMapper stuMapper;
    @Override
    public List<Stu> findAll() {
        return stuMapper.selectAll();
    }
}
